﻿using System;
using System.Runtime;
using System.Web;
using System.Web.UI;
using System.Security.Permissions;
using System.Reflection;

[assembly: WebResource("Marbles.Core.Web.Scripts.MarblesApplication.js", "application/x-javascript")]
namespace Marbles.Core.Web.Resources
{
    [AspNetHostingPermission(SecurityAction.Demand, Level = AspNetHostingPermissionLevel.Minimal)]
    public class MarblesScriptLibraryResource : ResourceManager
    {
        public string ApplicationLibraryResourceUrl
        {
            get
            {
                return GetResourceUrl(typeof(MarblesScriptLibraryResource), "Marbles.Core.Web.Scripts.MarblesApplication.js");
            }
        }

        public string ApplicationLibraryResourceValue
        {
            get
            {
                return GetResourceValue(typeof(MarblesScriptLibraryResource), "Marbles.Core.Web.Scripts.MarblesApplication.js");
            }
        }


        public string GetMarblesApplicationInitialiser()
        {
            return "<script language=\"javascript\">var MarblesApplication = new MarblesApplication();</script>";
        }
    }
}
